package com.meilai.project.entity.business.installOrder;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("work_order_install_detail")
@ApiModel(value= "工单安装详情表")
public class WorkOrderInstallDetail extends SuperEntity {
    @ApiModelProperty(value = "工单id")
    private Integer work_order_id;
    @ApiModelProperty(value = "项目id")
    private Integer building_area_id;
    @ApiModelProperty(value = "媒体类型id,只有新安装时需要")
    private Integer media_type_id;
    @ApiModelProperty(value = "数量")
    private Integer num;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;
    private LocalDateTime deleted_at;
}
